<div class="w700 float_left">
        <div class="bg_tt1">
        	{{if !empty($cat.parent)}}
          		<p class="tt p5t">{{$cat.parent.name}}</p>
          	{{else}}
          		<p class="tt p5t">{{$cat.name}}</p>
          	{{/if}}
        </div>
        <div class="tt_service">
        	{{if !empty($cat.parent)}}
         		<p class="float_left">{{$cat.name}}</p>
          	{{/if}}
          <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages float_right p2t">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="?page={{$nextPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
          <div class="cb"></div>
        </div>
        
        {{foreach from=$allProducts key=key item=block}}
        	{{if 0 == $key }}
        	<div class="w345 float_left p10t">
        		{{foreach from=$block item=product}}
        			<div class="box_yte_pro m10b po_re">
        				<div class="tt_service boder1">
              				<p class="float_left">{{$product.title}}</p>
            			</div>
            			<div style="float: left; width: 155px;">
	            			<a class="full_image" href="{{$BASE_URL}}{{$product.full_main_image}}"><img src="{{$BASE_URL}}{{$product.main_image}}" width="136" height="122"  /></a>
	            			{{if null != $product.sale_off}}
	                     		<div class="bed2">{{l}}Sale off{{/l}} {{$product.sale_off}}</div>
	                     	{{/if}}
	                    </div>
                     	<div style="float: left; width: 180px;">
            				<div class="p10t" style="min-height: 80px;">
            					{{$product.intro_text}}<br/>
            					<span class="font14 color_bule float_left">{{$product.price}} {{$product.price_extension}}</span> 
            				</div>
            				<div class="p10t"> 
            					<span><a class="bg_more float_right" href="{{$product.link}}">{{l}}Detail{{/l}}</a></span>
            				</div>
            			</div>
            			<div class="cb"></div>
        			</div>
        		{{/foreach}}
        	</div>
        	{{else}}
        	<div class="w345 float_right p10t">
        		{{foreach from=$block item=product}}
        			<div class="box_yte_pro m10b po_re">
        				<div class="tt_service boder1">
              				<p class="float_left">{{$product.title}}</p>
            			</div>
            			<div style="float: left; width: 155px;">
	            			<a class="full_image" href="{{$BASE_URL}}{{$product.full_main_image}}"><img src="{{$BASE_URL}}{{$product.main_image}}"  width="136" height="122"  /></a>
	            			{{if null != $product.sale_off}}
	                     		<div class="bed2">{{l}}Sale off{{/l}} {{$product.sale_off}}</div>
	                     	{{/if}}
                     	</div>
                     	<div style="float: left; width: 180px;">
            				<div class="p10t" style="min-height: 80px;">
            					{{$product.intro_text}}<br/>
            					<span class="font14 color_bule float_left">{{$product.price}} {{$product.price_extension}}</span> 
            				</div>
            				<div class="p10t"> 
            					<span><a class="bg_more float_right" href="{{$product.link}}">{{l}}Detail{{/l}}</a></span>
            				</div>
            			</div>
            			<div class="cb"></div>
        			</div>
        		{{/foreach}}
        	</div>
        	{{/if}}
        {{/foreach}}
        
        <div class="cb"></div>
        <div class="bg_tt1_3 m10t">
          <!-- PANIVIGATION -->
        	{{if $countAllPages > 1}}
	          <div class="pages float_right">
	            <ul>
	              {{if $first}}
	              	<li><a href="?page=1"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1.png"/></a></li>
	              {{/if}}
	              {{if $prevPage}}
	              <li><a href="?page={{$prevPage}}"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_left1_1.png"/></a></li>
	              {{/if}}
	              {{foreach from=$prevPages item=item}}
	              	<li><a href="?page={{$item}}">{{$item}}</a></li>
	              {{/foreach}}
	              <li class="current"><a href="#">{{$currentPage}}</a></li>
	              
	              {{foreach from=$nextPages item=item}}
                  	<li><a href="?page={{$item}}">{{$item}}</a></li>
                  {{/foreach}}
	              
	              {{if $nextPage}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1_1.png"/></a></li>
	              {{/if}}
	              {{if $last}}
	              	<li><a href="#"><img src="{{$LAYOUT_HELPER_URL}}front/images/bulet_right1.png"/></a></li>
	              {{/if}}
	            </ul>
	            <div class="cb"></div>
	          </div>
	        <!-- END PANAVIGATION -->
          	{{/if}}
        </div>
      </div>